<?php

use Faker\Generator as Faker;

$factory->define(App\Model\Article::class, function (Faker $faker) {
    return [
        //要填充的字段
        'title'=> $faker->sentence,
        'content'=>$faker->text(),
        'user_id'=>mt_rand(1,10)
    ];
});
